s=input()
flag=0
is_zero=0
for i in range(len(s)):
    if not flag and s[i]=='0':
        is_zero=1
        continue
    if s[i]>='0' and s[i]<='9':
        flag=1
        print(s[i],end='')
if not flag and is_zero:
    print("0")

